package function

import "github.com/gofrs/uuid"

type UUIDFunction struct {
	size int
	data []interface{}
}

func DefaultUUID(size int) *UUIDFunction {
	return &UUIDFunction{
		size: size,
		data: make([]interface{}, size),
	}
}

func (u *UUIDFunction) Build() []interface{} {
	for i := 0; i < u.size; i++ {
		uuidStr, _ := uuid.NewV1()
		u.data[i] = uuidStr
	}
	return u.data
}
